import { getInitialFieldsValue } from '@/pages/supplier/utils'
// import {
//   METAL_SELECT_LIST,
// } from '@/pages/supplier/constants/common';
// 核查管理 - 临采价格核查
const FORM_ITEM_LIST = [
  { prop: 'companyName', label: '公司名称', type: 'input', },
  { prop: 'supplierCode', label: '供应商代码', type: 'input', },
  { prop: 'supplierName', label: '供应商名称', type: 'input', },
  { prop: 'productCode', label: '商品代码', type: 'input', },
  { prop: 'productName', label: '商品名称', type: 'input', },
  { prop: 'unit', label: '计量单位', type: 'input', },
  { prop: 'specification', label: '规格型号', type: 'input', },
  { prop: 'priceRatio', label: '价格比例', type: 'input', },
  { prop: 'balance', label: '差额', type: 'input', },
  { prop: 'otherSupplierBalance', label: '其他差额', type: 'input', },
  // { prop: 'isMetal', label: '是否钢材', type: 'select', options: METAL_SELECT_LIST },
  { prop: 'purchasePerson', label: '采购人', type: 'input', },
  { prop: 'createUserId', label: '核查人', type: 'userSelect', },
  { prop: 'time', label: '核查时间', type: 'datePicker', },
  { prop: 'managementAreaId', label: '管理区域', type: 'managementArea' },
]
const INITIAL_FIELDS_VALUE = getInitialFieldsValue(FORM_ITEM_LIST)
const TABLE_COLUMNS = [
  { title: '序号', key: 'index', width: 50 },
  { key: 'companyName', title: '公司名称' },
  { key: 'supplierCode', title: '供应商代码' },
  { key: 'supplierName', title: '供应商名称' },
  { key: 'managementAreaName', title: '管理区域' },
  { key: 'mainCategoryCode', title: '主营品类代码' },
  { key: 'mainCategory', title: '主营品类' },
  { key: 'productCode', title: '商品代码' },
  { key: 'productName', title: '商品名称' },
  // { key: 'whetherItIsSteel', title: '是否钢材' },
  { key: 'specification', title: '规格型号' },
  { key: 'unit', title: '计量单位' },
  { key: 'purchaseCount', title: '采购数量' },
  { key: 'purchasePrice', title: '采购单价' },
  { key: 'totalAmount', title: '采购金额' },
  { key: 'checkPrice', title: '核查价格' },
  { key: 'balance', title: '差额' },
  { key: 'priceRatio', title: '差率' },
  { key: 'otherSupplierPrice', title: '其他供应商价格' },
  { key: 'otherSupplierBalance', title: '其他差额' },
  { key: 'spotCheckDesc', title: '抽查描述' },
  { key: 'createUser', title: '核查人' },
  { key: 'createTime', title: '核查时间' },
  { key: 'purchaseBill', title: '单据号' },
  { key: 'purchasePersonName', title: '采购人' },
]
export {
  INITIAL_FIELDS_VALUE,
  FORM_ITEM_LIST,
  TABLE_COLUMNS
}
